package com.eliza.kotlin.design.structure.proxy.static_proxy

/**
 * @version v1.0
 * @ClassName: ProxyPoint
 * @Description: 代售点类
 * @Author: 黑马程序员
 */
internal interface SellTickets {
    fun sell()
}

internal class ProxyPoint : SellTickets {
    //声明火车站类对象
    private val trainStation = TrainStation()
    override fun sell() {
        println("代售点收取一些服务费用")
        trainStation.sell()
    }
}